import { getToken } from "@/utils/auth";

export const baseUrl = {
	// development: 'http://192.168.2.134:3333',
	development: 'http://localhost:9090',
	// development: 'http://118.31.106.170:4567',
	production: 'https://api.todisk.top',
	// production: 'http://118.31.106.170:4567',
}[process.env.NODE_ENV]

//字典通用参数
export const dic = {
	dicUrl: `${baseUrl}/system/dict/findDictByCode`,
	dicHeaders: {
		['Authorization']: getToken()
	},
	dicQuery: {
		// code: 'panCodeTime',
	},
	props: { label: 'dictValue', value: 'dictKey' },
	// dicFormatter: ({data}) => data,
}
export const isDev = process.env.NODE_ENV === 'development'

